package com.java.lesson.lesson2;

import java.util.Scanner;

public class Lesson22 {
    public static void main (String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您要验证的成绩:");
        double score = scanner.nextDouble();
        if (score>=90&&score<=100){
            System.out.println("您的成绩为优秀，请保持状态！");
        } else if (score>=80&&score<=89){
            System.out.println("您的成绩为良，还有提升的空间！");
        } else if (score>=70&&score<=79){
            System.out.println("您的成绩为中等，你还可以更进一步！");
        }  else if (score>=60&&score<=69){
            System.out.println("您的成绩为合格，请继续努力！");
        }else if (score>=0&&score<59){
            System.out.println("您的成绩不合格，请加倍努力！");
        }else{
            System.out.println("您的输入有误，请重新输入！");
        }
        scanner.close();
    }
}
